-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Captive portal #804
base: master
Are you sure you want to change the base?
Captive portal #804
Conversation
replace stale file with symlink to correct file
open issues: (notes to myself)
|
*Captive portal doesnt work in offline case since the DNS cannot resolve. * Pending todo is to resolve all DNS requests locally if WAN happens to be offline. |
Yay! This is now working also when the server is not connected to the internet. The solution is to create a DNS blackhole when WAN is absent, much like what is described here: This is NOT currently a part of the PR but am documenting it here! |
Final list of pending issues:
|
we've developed a norm for services that there are installed and enabled ansible variables which govern a service. In this playbook, the absence or dansguardian, and squid, govern disabling dhcpd, and the enabling of captive portal. |
Anish, can you rebase off of current master and note that DB installation is now in 0-once so maybe that would be a better place for adding freeradius. I'll work with you to resolve the network logic. |
finally got a chance to try this. centos vm. I cloned branch which is the PR TASK: [captive_portal | Install radius packages] ****************************** TASK: [captive_portal | Remove the radius database if it exists] ************** TASK: [captive_portal | Create a new database with name radius] *************** |
probably need meta like cp roles/wordpress/meta/main.yml roles/captive_portal/meta |
I also think it is being disabled because mysql_enable: False, which is wrong. |
after patching I get to TASK: [captive_portal | Edit freeradius service file to ensure that it starts after mysql] *** |
starting by hand Dec 11 15:57:03 schoolserver.lan systemd[1]: Failed to start FreeRADIUS high performance RADIUS server..
|
the include of mods-enabled does not read the conf files in the right order, so sqlcounter gets read before sql which has definitions it needs. so we need to replace the include of the dir with explicit files: $INCLUDE mods-enabled/always |
Am I right in thinking that this only works on internal wifi? If I have a bigger machine with external hotspot am I out of luck? |
Interesting. I didn't encounter any issue like the one mentioned in the last comment about sql/sql-counter. Also to answer your previous comment, it works in both cases (i) with internal wifi (ii) with a router connected via LAN I finally have a raspberry pi 3 so can start testing later this week. However, I am all out of NUCs for now (they are all in Spiti) and it will be atleast a couple of weeks before I get more NUCs and routers. Thanks for the effort in trying to get this feature upstream! |
## This is a testing pull request for preview only.
Instructions:
Browse to any website. You should be redirected to the captive portal page. Username and password is
xsce-admin/g0adm1n
Future work:
Feedback welcome!